// 实现图片懒加载
// 使用 v-lazyLoad="src" src:图片地址
export default {
  inserted(el, binding) {
    const image = new Image()
    image.src = binding.value
    image.onload = () => {
      el.setAttribute("src", binding.value)
    }
  },
}
